package com.ruoyi.domain;

import com.ruoyi.util.BaseBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import java.util.Date;

/**
 * 银行流水对象 t_banklog
 *
 * @author zhanggq
 * @date 2020-02-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BankLog extends BaseBean
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name= "编号")
    private Integer id;

    /** 关联表单编号 */
   // @Excel(name = "关联表单编号" )
    private Integer rid;

    /** 关键表单名称 */
   // @Excel(name = "关键表单名称")
    private String tablename;

    /** 费用发生时间 */
    @Excel(name = "费用发生时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date feeTime;

    /** 银行id */
  //  @Excel(name = "银行id")
    private Integer bankId;

    /** 收入 */
    @Excel(name = "收入")
    private String inCome;

    /** 支出 */
    @Excel(name = "支出")
    private String expend;

    /** 余额 */
    @Excel(name = "余额")
    private String amount;

    /** 对方户名 */
    @Excel(name = "对方户名")
    private String customerName;

    /** 对方银行帐号 */
    @Excel(name = "对方银行帐号")
    private String customerBanknumber;

    /** 支付方式 转帐，承兑 */
    @Excel(name = "支付方式")
    private String feeType;


    /** 备注 */
    @Excel(name = "备注")
    private String intro;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private String company;

    /** 币种 */
    @Excel(name = "币种")
    private String currency;

    /** 预留字段 */
    @Excel(name = "预留字段")
    private String reserved;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("rid", getRid())
                .append("tablename", getTablename())
                .append("feeTime", getFeeTime())
                .append("bankId", getBankId())
                .append("inCome", getInCome())
                .append("expend", getExpend())
                .append("amount", getAmount())
                .append("customerName", getCustomerName())
                .append("customerBanknumber", getCustomerBanknumber())
                .append("feeType", getFeeType())
                .append("id", getId())
                .append("intro", getIntro())
                .append("company", getCompany())
                .append("currency", getCurrency())
                .append("reserved", getReserved())
                .toString();
    }
}